import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '公司名称',
    align: "center", resizable: true,
    dataIndex: 'companyname'
  },
  {
    title: '税务代码',
    align: "center", resizable: true,
    dataIndex: 'taxcode'
  },
  {
    title: '开户行名称',
    align: "center", resizable: true,
    dataIndex: 'bankname_dictText'
  },
  {
    title: '银行账号',
    align: "center", resizable: true,
    dataIndex: 'bankaccount'
  },
  {
    title: '联系电话',
    align: "center", resizable: true,
    dataIndex: 'phone'
  },
  {
    title: '发票类型',
    align: "center", resizable: true,
    dataIndex: 'type_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  companyname: {title: '公司名称',order: 1,view: 'text', type: 'string',},
  taxcode: {title: '税务代码',order: 2,view: 'text', type: 'string',},
  bankname: {title: '开户行名称',order: 3,view: 'list', type: 'string',dictCode: 'bank_name',},
  bankaccount: {title: '银行账号',order: 4,view: 'text', type: 'string',},
  phone: {title: '联系电话',order: 5,view: 'text', type: 'string',},
  type: {title: '发票类型',order: 7,view: 'list', type: 'string',dictCode: 'invoice_type',},
};
